package com.cf.service;

import com.cf.entity.Address;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AddressService {
    //根据用户id查询用户地址
    public PageInfo<Address> selectUserAddress(int pagenum,int pagesize, long userid);
    //根据addressid查询用户地址
    public Address selectByAddressid(long addressid);
    //修改用户地址
    public int updateAddress(Address address);
    //删除地址信息
    public int deleteAddress(long addressid);
    //添加地址
    public int addAddress(Address address);
    //根据用户id查询用户地址
    public List<Address> selectAllAddress(long userid);

}
